function Power(base, exponent) {
  // write code here
  let flag = Math.abs(exponent);
  let res=1
  while (flag>=1) {
    res=res*base
    flag--
  }
  if(exponent>=0)return res
  else return 1/res
}
